<?php
// $Id$

/**
 * Controller_Post 控制器
 */
class Controller_Post extends Controller_Abstract
{
	
	function actionIndex(){
        // 为 $this->_view 指定的值将会传递数据到视图中
		# $this->_view['text'] = 'Hello!';
	}
	
	function actionView(){
		$this->_view['post'] = Posts::find(' ID = ? ', $this->_context->nid)->query();
		if ($this->_view['post']->id){
			$this->_view['author'] = Authors::find(' ID =?', $this->_view['post']->author_id )->query();
			$this->_view['category'] = Categories::find(' ID = ?',$this->_view['post']->category_id )->query();
			
			$this->_view['keys'] = Tags::find( ' new_id = ? ', $this->_view['post']->id)->query();
			
		}
		//dump( $this->_view['post'] );
	}//END action view
	
}//END Controller Post
?>